#ifndef ISessionManager_h__
#define ISessionManager_h__
#include "StdCmm.h"
class ISessionManager
{
public:
	virtual ~ISessionManager() {}

public:

	virtual void Close(SocketID sid) = 0;

	virtual SendResult AsyncSend(SocketID nSID, const char *pBuffer, int size, CONTENT_TYPE type) = 0;
	virtual SendResult SyncSend(SocketID nSID, const char *pBuffer, int size, CONTENT_TYPE type) = 0;

	virtual void BoradcastTo(const std::vector<SocketID> nSID, const char *pBuffer, int size, CONTENT_TYPE type) = 0;
	virtual void BoradcastToAll(const char *pBuffer, int size, CONTENT_TYPE type) = 0;
};

#endif // ISessionManager_h__
